package Testwork;

import java.util.HashSet;

public class ceshi {
	int x;
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + x;
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ceshi other = (ceshi) obj;
		if (x != other.x)
			return false;
		return true;
	}
	public static void main(String[] args) {
		HashSet<String> set=new HashSet<String>();
		set.add("hi");
		System.out.println("hg".hashCode());
				
	}

}
